package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 教职员工对象 sys_staff
 *
 * @author ruoyi
 * @date 2024-11-14
 */
@TableName("sys_staff")
@Data
@EqualsAndHashCode(callSuper = true)
public class SysStaff extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 教职工id
     */
    @TableId(value = "staff_id", type = IdType.AUTO)
    private Long staffId;

    /**
     * 名字
     */
    @Excel(name = "名字")
    private String name;


    @Excel(name = "企业微信用户编号", type = Excel.Type.IMPORT)
    private String enterpriseUserId;

    /**
     * 用户性别（0男 1女 2未知）
     */
    @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知")
    private String sex;

    /**
     * 出生日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /**
     * 联系方式手机号码
     */
    @Excel(name = "联系方式手机号码")
    private String phone;

    /**
     * 联系方式邮箱
     */
    @Excel(name = "联系方式邮箱")
    private String email;

    /**
     * 入职时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入职时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date hireDate;

    @Excel(name = "部门")
    @TableField(exist = false)
    private String deptName;




}
